﻿using DevExpress.ExpressApp;
using DevExpress.ExpressApp.DC;
using DevExpress.ExpressApp.Model;
using DevExpress.Persistent.Base;

namespace EasyXaf.EntityDesigner.CodeTemplates;

[DomainComponent]
[XafDisplayName("C#代码")]
public class CSharpCodeObject : NonPersistentLiteObject
{
    private string _code;

    [EditorAlias("CodeEditor")]
    [ModelDefault("AllowEdit", "false")]
    public string Code
    {
        get => _code;
        set => SetPropertyValue(ref _code, value);
    }
}
